import React from "react";
import { Card, Input } from "antd";

export default class CardItem extends React.Component{
    constructor(props){
        super(props);
    }
    render(){

        const { tabListNoTitle, activeTabKey ,contentListNoTitle,onTabChange } = this.props
        return(
                <Card
                    style={{
                    width: '100%',
                    }}
                    tabList={tabListNoTitle}
                    activeTabKey={activeTabKey}
                    tabBarExtraContent={
                        <Input placeholder="input search text" ></Input>
                    }
                    onTabChange={onTabChange}
                >
                    {contentListNoTitle[activeTabKey]}
                </Card>
        )
    }
}